<?php 
namespace Home\Model;
use Think\Model;
class UserModel extends Model {

	public function checkEmail($email)
	{
		$res = $this->where("email='{$email}'")->find();

		// $sql  = "select * from user where email='{$email}'";

		// $res = $this->query($sql);


		return $res;
	}

	public function checkNickname($nickname)
	{
		$res = $this->where("nickname='{$nickname}'")->find();

		return $res;
	}

}


 ?>